<?php
error_reporting(0);
$isadmin=1; 
include '../comm/config.php';
//include '../comm/checkpostandget.php';
include 'check.php';
$adtype=$_POST['adtype']; 
$content =stripcslashes($_POST['content']); 
$content =addslashes($content);
$id=$_POST['id']; 
$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
     die(ERR_DB);
}
mysql_select_db($dbname);
mysql_query("set names utf8");
$q = "update ".$BIAOTOU."ad set adtype='".$adtype."',content='".$content."' where id='".$id."'";
mysql_query($q);
header('Location: adlist.php');     
mysql_close($link);
?>
